package com.example.e_comm.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 方金月
 * @version 0.1
 * @date 2025/10/14 10:15
 */
//权限管理

@Data
@TableName("permissions")
public class Permission {
    @TableId(type = IdType.AUTO)
    private Long id;
    @TableField(value = "perm_name")
    private String permName;
    @TableField(value = "perm_key")
    private String permKey;

    @TableLogic(value = "0", delval = "1")
    private Integer deleted;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime = LocalDateTime.now();
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private LocalDateTime updateTime = LocalDateTime.now();
}
